#ifndef CUSTOMDB_OPERATOR_H_INCLUDED
#define CUSTOMDB_OPERATOR_H_INCLUDED

#include <iostream>
#include <string>
#include <winsock2.h>
#include <mysql.h>
#include <iomanip>
#include "db_access.h"
#include <vector>
#include<map>
using namespace std;
class CCustomOperator;

class CCustomOperator
{
private:
    CDbAcess dbAcess;   //db operator class


private:
    int countNumber();  //count number of members
    string getDateTime(string date);
public:
    CCustomOperator();
    //CCustomOperator(string ip="127.0.0.1",int port=3306,string username="root", string password="",string db="account");

    //bool addMember(const char*,const char*,const char*);  //add member to customer_info
    //bool addCard(const char*,const char* ,const char* );    //bind card with customer
    //bool addMember(string name,string address,string profession);
    //bool addCard(string name,string card_type,string times="1000");
    bool addMember(vector<string>& command_args);
    bool addCard(vector<string>& command_args);
    bool addCourse(vector<string>& command_args);
    bool addCoach(vector<string>& command_args);
    bool schedule(vector<string>& command_args);
    bool subscribe(vector<string>& command_args);
    bool cancel(vector<string>& command_args);

};



#endif // CUSTOMDB_OPERATOR_H_INCLUDED
